import data
def fix_resource():
    from albow import resource
    from functools import partial

    resource.resource_dir = data.filepath('')
    resource._resource_path = partial(resource._resource_path, prefix="")

def add_parent_dir():
    import sys, os
    from os.path import dirname as d
    sys.path.insert(1, d(d(os.path.abspath(sys.argv[0]))))
